package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 颁发机构对象 issuer_unit
 * 
 * @author ess
 * @date 2021-10-18
 */
public class IssuerUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 证书颁发机构Id */
    private String issuerUnitId;

    /** 证书颁发机构名称 */
    @Excel(name = "证书颁发机构名称")
    private String issuerUnitName;

    /** 证书颁发机构签名根证书 */
    @Excel(name = "证书颁发机构签名根证书")
    private String issuerUnitPfx;

    /** 证书颁发机构根证书 */
    @Excel(name = "证书颁发机构根证书")
    private String issuerUnitRoot;

    /** 根证书密钥 */
    @Excel(name = "根证书密钥")
    private String pfxPwd;

    /** 是否支持生成证书 1支持 2 不支持 */
    @Excel(name = "是否支持生成证书 1支持 2 不支持")
    private Long isCreatCer;

    /** 状态 0无效 1 有效 */
    @Excel(name = "状态 0无效 1 有效")
    private Long state;

    /** 根证书算法 */
    @Excel(name = "根证书算法")
    private String algorithm;

    /** BC算法公钥 */
    @Excel(name = "BC算法公钥")
    private String bcPub;

    /** BC算法私钥 */
    @Excel(name = "BC算法私钥")
    private String bcPrv;

    public void setIssuerUnitId(String issuerUnitId) 
    {
        this.issuerUnitId = issuerUnitId;
    }

    public String getIssuerUnitId() 
    {
        return issuerUnitId;
    }
    public void setIssuerUnitName(String issuerUnitName) 
    {
        this.issuerUnitName = issuerUnitName;
    }

    public String getIssuerUnitName() 
    {
        return issuerUnitName;
    }
    public void setIssuerUnitPfx(String issuerUnitPfx) 
    {
        this.issuerUnitPfx = issuerUnitPfx;
    }

    public String getIssuerUnitPfx() 
    {
        return issuerUnitPfx;
    }
    public void setIssuerUnitRoot(String issuerUnitRoot) 
    {
        this.issuerUnitRoot = issuerUnitRoot;
    }

    public String getIssuerUnitRoot() 
    {
        return issuerUnitRoot;
    }
    public void setPfxPwd(String pfxPwd) 
    {
        this.pfxPwd = pfxPwd;
    }

    public String getPfxPwd() 
    {
        return pfxPwd;
    }
    public void setIsCreatCer(Long isCreatCer) 
    {
        this.isCreatCer = isCreatCer;
    }

    public Long getIsCreatCer() 
    {
        return isCreatCer;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setAlgorithm(String algorithm) 
    {
        this.algorithm = algorithm;
    }

    public String getAlgorithm() 
    {
        return algorithm;
    }
    public void setBcPub(String bcPub) 
    {
        this.bcPub = bcPub;
    }

    public String getBcPub() 
    {
        return bcPub;
    }
    public void setBcPrv(String bcPrv) 
    {
        this.bcPrv = bcPrv;
    }

    public String getBcPrv() 
    {
        return bcPrv;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("issuerUnitId", getIssuerUnitId())
            .append("issuerUnitName", getIssuerUnitName())
            .append("issuerUnitPfx", getIssuerUnitPfx())
            .append("issuerUnitRoot", getIssuerUnitRoot())
            .append("pfxPwd", getPfxPwd())
            .append("isCreatCer", getIsCreatCer())
            .append("state", getState())
            .append("algorithm", getAlgorithm())
            .append("bcPub", getBcPub())
            .append("bcPrv", getBcPrv())
            .toString();
    }
}
